﻿using Grasshopper.Kernel;

namespace AiMoInGH.Connector
{
    readonly struct ParamInfo
    {
        public string FullName { get; }
        public string ParamName { get; }
        public GH_ParamType ParamType { get; }
        public GH_ParamAccess Access { get; }
        public ParamInfo(string name, GH_ParamAccess access, GH_ParamType paramType)
        {
            ParamType = paramType;
            ParamName = name;
            switch (access)
            {
                default:
                case GH_ParamAccess.item:
                    FullName = $"{name}_Item";
                    break;
                case GH_ParamAccess.list:
                    FullName = $"{name}_List";
                    break;
                case GH_ParamAccess.tree:
                    FullName = $"{name}_Tree";
                    break;
            }

            Access = access;
        }


    }
}
